package com.linwt.controller;



import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.linwt.bean.Visitor;
import com.linwt.service.VisitorService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@RestController
@Api(tags="来访人信息数据接口")
public class VisitorController {
	
	@Autowired
	VisitorService visitorService;
	

	@GetMapping("visit/list-all")
	@ApiOperation(value="查询所有的来访人员信息")
	public List<Visitor> listAllVisitors() {
		List<Visitor> visitors = visitorService.listAllVisitors();
		return visitors;
	}
	

}
